package com.fieldchain.ex.fa100.access;

import android.view.View;
import android.webkit.WebView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.fieldchain.ex.fa100.R;
import com.fieldchain.ex.fa100.base.MyBaseActivity;

/**
 * Created by biyunlong
 * Email: 1225198434@qq.com
 * Data:  2018/11/12
 */
public class PlantWorldActivity extends MyBaseActivity {
    private RelativeLayout reaBack;
    private TextView tvCenter;
    private WebView web;
    @Override
    public void findView() {
        reaBack = findViewById(R.id.rea_back);
        tvCenter = findViewById(R.id.tv_center);
        web = findViewById(R.id.web);
    }

    @Override
    public void setValue() {
       tvCenter.setText("艾场服务条款和隐私保护");
       reaBack.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {
               finish();
           }
       });
        web.loadUrl("file:///android_asset/index.html");
    }

    @Override
    public int getLayout() {
        return R.layout.activity_plant;
    }
}
